package com.h3c.nem.service;

import com.h3c.nem.dto.SdUserDTO;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.List;

/**
 * Copyright (C), 2020-2020, h3c
 * FileName: ISdUserService
 *
 * @Author: l22886
 * @Date: 2022-01-19
 * Description: sd_user service
 * Version: 1.0
 */
public interface ISdUserService {

    /**
     * @title: selectFuzzyByDto
     * @description: 模糊查询操作
     * @params: [ dto ]
     * @return: java.util.List
     * @createTime: 2022-01-19
     * @version: 1.0
     * @author: l22886
     */
    public List<SdUserDTO> selectFuzzyByDto(SdUserDTO dto);

    /**
     * @title: selectByDto
     * @description: 精确查询操作
     * @params: [ dto ]
     * @return: java.util.List
     * @createTime: 2022-01-19
     * @version: 1.0
     * @author: l22886
     */
    public List<SdUserDTO> selectByDto(SdUserDTO dto);

    /**
     * @title: insertDto
     * @description: 插入操作
     * @params: [ dto ]
     * @return: Integer
     * @createTime: 2022-01-19
     * @version: 1.0
     * @author: l22886
     */
    public Integer insertDto(SdUserDTO dto);

    /**
     * @title: updateDto
     * @description: 修改操作
     * @params: [ dto ]
     * @return: Integer
     * @createTime: 2022-01-19
     * @version: 1.0
     * @author: l22886
     */
    public Integer updateDto(SdUserDTO dto);

    /**
     * @title: deleteDto
     * @description: 删除操作
     * @params: [ dto ]
     * @return: Integer
     * @createTime: 2022-01-19
     * @version: 1.0
     * @author: l22886
     */
    public Integer deleteDto(SdUserDTO dto);

    public File download(SdUserDTO paramsDTO, String templateCode, String fileName);

    public Integer deleteDto(List<SdUserDTO> dto);

    Integer importUserRoleList(MultipartFile file);

    Integer importUserNew(MultipartFile file);

    String getUserIdByRoleId(int userRole);
}
